teached trajectory working