added brackets with test
added max triplet prod