Move lines 37 and 38 into the if statement.