small changes to update.c