adjoint now working