alter number of levels to match data set