got rid of vector for position
iterating through attirbutes of each parent