use Arrays.equals() and Arrays.hashCode() on arrays