fixing timeTaken