add flow declaration