update to support the orientation rotating