added array comparison