added declare aggregate field in declare aggregation, but buggy