add appropriate line