The invention provides substituted heteroaryl derivatives of the formula(see formula I)and to methods for the production thereof. The compounds of the invention maybeused to affect a patient's opioid receptor system, and the ORL-1 opioidreceptor andthe µ opioid receptor in particular.