adding avg BG calculations