detach object before returning them