dec digit matrix in main function