separate four functions from utils => check_data.py