use check_for_get_code