assemble matrix done