profiling part of task 6