rm old lines from func