non-functional verison for running time