Learning to detach from attachment