added step parameter as well as changed format of ins-to-data