inserted matrix S