add trajectory output to the fixedPolicy code