changed block of code with removeLines