made fpc sum.stats work with groups