added textHeight variable