unified logic and graphic rotation