added histogram domain and field detection