refactored header for smaller resolutions