modify the decode problem