parsing data, for loop for cycling through attr.