split rop-defining functions into define module