function unregister added