added guard rotation