added elements to array