wip pre_process