globals for range filtering are being kept track of, fix for now