Original version, band_cal function is added