same comment as update function