only support for 1D as of now