add linear trajectory and regulation