quit changed to stop loop. added for