change ibeacon logic