move a bit of code into .cpp files