changed helper functions to .cpp format