removes the duplication wrt creating a new node - adhering to DRY