preprocessing.js