added 3D arrays