update graphs