Updated visibility of setParent method, if it is internal it should be protected