removed timeElapsed function call