trajectory calls step fn properly