finish reading main.c