deleting useless lines