added some functions to iterate through the motion

need correct motion graph data