adding Main Decoder Diagram