I\'m trying to access a bunch of objects coming from one function from For loop in other function but what I\'m getting is the latest object, not all of them and I\'m not sure w