added for loop and gprof to make