added support for  nodes with arbitrary width