set private modificators to node fields