updates the organization of the code