check file relation