added dimention and repeat options