it says something isn't defined, when there's no problem logging it 2