added a call to unregisterreceiver