project09 done with all files, error checking