lots of work on deformation apply and invert