added timePasses function