prepare for dist