simplified array searching