interface for unregistering