upgrade codes