added double psf fit stuff