moved several functions from the default controller in a model file called data_elaboration