add fininshing, add performance measurment