set height correctly