added callback to _.average