addding motor index