12\5 add processing into States