detaching objects from db - intermediate