Changed method for removing parent