erase useless lines