update for functions