variable number of instances