framework improved, check_int should function