added profiling code