added psi_deriv functor