updating the coding scheme