include definitions for traj. gen. functions