change relatedid to beaconid