#5 made topHeight private — it's gathered from constraint