add mote part code.