added partitions to WhereClause