added trajectory controls