transplant and remove functions