doing propper array comparison