band optimization + leave fix + db fix