removing the deregister function