code for profiling analysis added