implement trajectory map