add 0d and 2d data