arraysearch should be used