added motion graph and motion state