finally set dynamic height