check for endswith -1 for aggregate_ids