error on generics changes fixed (arrays were cast as arrays of arrays)