rearranged qr classes