GPT4 (the preview) still produces code where it adds variables that it never uses anywhere... and when I asked one time about one variable, it was like, "Oh, you're right, let me re-write the code to put variable X into use", then just added it in a nonsensical location to serve a nonsensical purpose.