inverted logic in execution of while, awhile

classic trev…