optimization DecodeWay