prepare for updating