small refactoring, fill_result_with_value moved