check whole file or only updated