made get_value_by_pattern const