add delegate and add a bit demo