use array to list partitions-improved performance