profiling at beginning