fixed logic for computing average tweets