added ability to construct multidimensional sequences