refactor node partie 1