more generic sum elements node