added check to fact data reading