added function to dump variance per category