why doesn't the second part of the code run?