start to profile the code