update response code by releasing collection