add hash to block