other implementation for frequency band finding