added range to the boundaries to tell the dif between voids and cavities