refact logic lines header