added file content check