Removing unuseful lines