try to infer the list layout style whilte rendering the refactored code.