added support for modyfing existing element in nested node