refactoring each content height