add rm_line function, removed by mistake