removed deep array comparison and sorting.