modify log.c