added parent function to allow nodes to update attributes properly
(there must be a better way!)