YPC codes