some work on Decode Ways