prepare method update