set-2d return a nwe matrix