removed static ndim