change step logic