I understand what this code is doing and how it works, I'm just not sure why the old code was no longer working?