negative rotations and flips allowed