add multi-dimension array, not fully understood