refactor column content code