disabled logging.. added function to calculate total time and display it at the end