trigram structure