started with affine correciton