more work on profiling