updated code and added dual and short talk on flows