template for rotary