added warning for using 1D arrays