updated flowchart in the specification