Application of rotation function in maintenance