minor change to set matrix