calculating variant stats