preprocessing functions added in R script