profiling for code improvement assignment 1400389