change signature for intersectBed