added another quit method