add index to motions