this is a program to check the file before its