added support for adding value into array