fixed profiler in order to make test program 4 work