rebuild prepare