added auto_align transformation