well, thanks first for the replys. this is how it works.
the user right clicks to put down a pivot. when this happens the program says
e.entity=new entity
e\ent=createsphere() ;<<to represent a pivot
so every time a pivot is made, it is placed directly within the type collection. the user then would click the first pivot and the code would jump to that point in the type collection by cycling thru them until it got to the right one.
The problem came when i clicked the next pivot, it lost the location of the last pivot selected in the type collection.
Ken, thanks for your ideas, but everytime i make a new entity, i would need to manually say
e3.entity=new entity
e4.entity=new entity
and since the number of pivots and entities is dynamic, i don't think it would be possible to keep track of them that way
but i solved it for anyone who's is interested (sorry guys for the poor explanation). here's what i did
findentity(child); <<child is the number assigned to the entity on creation in order to find it again
EntityParent e\ent,findentity(parent); << findentity(parent) will return the entity with the index number equal to the parent.
and that's that. thanks to the guy you helped me get that one :), and thank you to you'z for tryin to help. Much appreciated :D