clear and rotate