step function works with DataSet