refactored benchmark added some comments