adds new instances to a  array