added rotate command check