add lower and upper triangular