add the decode and bug fixed