write out trajectory