Unify scale and shift application code
currently we have 2 different code bases for the application of scaling and shifting in the preprocessing and in the application to test and validation files
it would be good to unify the base code and just call the corresponding functions in these 2 places