modified setter to check if the argumet is identical to existing scoped matrix value.