working on command pocessor stat diagram