remove console.logs, move calculation to buy