refactored to assign to content node