added hacked DefinementStep()