add parser to triples and also output triples