update the console app
switch the order in the if statement