New matrix submission funstion