adding array of elements