update to add region overlap function