relocate a function