added iterating over instances file