moved mtf, psf and diff methods here