created global.R and preprocessing.R