implementing diffStep.

Not tested yet.