model preparation