rectangle search