put variables back where they are needed cause i am dumb