fix avg/size stuff