flexHeight method added