try to prevent memory leek