fixed problems with irregular observations by counting steps