trying to add or to the while loop, to quit on command