change the function name of deinitialize