just before new mat visualization