working on mag dependent psf stuff