simplify remove_line