prepare for releasing