fix affine in a better way

argh this time