bandtable function working