Replace this parameter on rotate function to eliminate call stack problem and variable access