only allocate memory for one band each time