prescribing effective pain treatments