add flow diagram