update function comments