temp fix update with func