fixes to 3-4-D arrays