local deformation code + debug strings (deformation is shifted to the right  for unknown reason)