now resolved the issue of updating an array item