added trajectory plot