removing error generating lines