commit5 - avg bug fix