minor changes in preprocessing