simplified creation of constant node