modify codes to buy