group the same instance type together