give more flexibility to statistics calc