removed isCorrupt boolean flag