added code for trigraphs