modify the Algorithm for dynamic get Beacon Array