added code for coinbase