updated main file for check for 0 geofences