Updated left and right edge triplet methods to use let.