bug from merge and from relacing rect[] temps with ilo,ihi,jlo,jhi