rotation and board size fix