move a function from a .h to a .cpp