added check on data post