putting functionality into functions.h to get more meaningful results from gprof