removing lines that can cause the seg fault