new function in base class: check_data()