added file check
formatting