fixed for importing instances. Same number of instances as previous.