adapt number of position classes