change control flow to markdown