add codes to buy