added average tweets function