creating proper switch fact
range building for scripts working