moving a function call