forgot to exit when checking for both