removed setAdequateHeight function