changed remove lines

- replaced every time we removed a line with the procedure "removeLine"