add preprocessing function for Princeton data