Chang to array comparison