improved format
implemented performance functionand measurements