corrected typo. changed codes to code