add missing code for rotor