before updating stream graph