pre-processes