preprocess users