adding trajectory