moved code for incrementing level time step counter to separate function