add a minmax for rotation.