made it search against an array