using metadata of aggregation ... fixed get_variable()