fix number of dimension