array.map function added