improve frequency scanning