use height for yDim to close #4