using new until quit function