moved valueGrad and value() printouts in deformation