parsing diagram completed