Insert some matrix and dict check