Removed unneeded variable self_of_parent