updated transformations to take head into account