changed Node to a datatype