optimise Stepwized() but failed