added comparison of arrays