fixed major problems. Table directly to  qdot.