updated build_data.R script