modify scanning.c