added tri buf