added psf function to trajectory class