changes related to partition - still some logical bugs in the categorization of variants.  will fix later.