new file check function declaration