made ECC code optional