partitioning the feature space