update the regstration function and effects.