fixed rotary bug, used && instead of &