prepare for distribution