addrelease: initialize discnumber_shift outside the loop