added stopWatch to take time
fix in calculating time diff