Added height2 function