add detect band width code