reorganices code