Mastering the therapeutic effect of pain management