managing pain safely