added possibility to use rotated fields