updates matrix graphcs