add data to elements