rename searchArray variable for clarity