added elapsed time to update function