adding checkfile