access objects using pointers instead of idx
generate an object from a set of objects