clean the way we compute avg