adding trajectory allignment script