add function of deploy prepare