edited matrix