fix due to task

Now function return pointer to added value.
And adding  of new value is more efficiently