affine needs some tuning to work fast