refactored removeline to tools