profiling. fixing #27