resolve 'ERR no such key' add(index,element)