move a function to a different file