fixed search all; index check array