jpi: adding submat