make it possible to just use 1d inputs, without wrapping in list