set TimeStep as local variable