Changed res to matching CCS as defined in wikipedia