modified the example of deformable elements