change step flow to fit the example given in xml representation