removing separate Node class