remove old code from update.c