added a reinitialization process