first version of the profiler