added check_period