update scan.c