add quit code