first isTris implementation