geofence bad refacto