restrict to 1d