prepare for packaging