added .data to loop