redo datapreparation