object detach working