some datachecking