Rename code variable to codes