global matrix init added