prepare to realse