update sources to use the new matrix template