added check for prior data