ibeacon logic change