change searching type for arrays