removing useless lines