Abstract
Our purpose in this paper is to show that certain subsets, defined by commutativity conditions involving derivations or endomorphisms, coincide with the center in prime rings. Moreover, we provide examples to show that the assumed restrictions cannot be relaxed.