shift } before rbind function. did not appear to affect output file.