update for key.c