Deleted duplication and made one method to add content to a node