replaced cells with nodes