use remove replace detach method