update to attend function for beacon recognition