TODO: average takes into account space filling