add union by height