Removing useless lines