i think this is a good fix of the end of the file mac check