changes made to keep tack with gprof