Make CHATGPT remember better?

I have a solution to make CHATGPT remember better… Everytime you ask complex coding it simply does not remember the last task or goes on its own way adding extra stuff in. You have to keep going back to chatgpt and say - add to the exact code etc etc… I have figured out a simply way to make it LEARN better… I feel everytime you ask a question make the “copy code” and id… Like copy code ID 54… When you ask to repeat and add further information , simply direct by say , use copy code ID 54 exactly and change the form to this etc etc. Also add actions above like EXACTLY | CREATE NEW | MODIFY NEW… Such a pain to try and repeat yourself when creating code and asking to go back to the original code or adjusted code that works