restored old get_result function