working on unregister