adding scan.c (uncalled)