added different classes of nodes