preProcess example