updating beacon sample