added trajectory creation