debugging check_structure