backward matrix done