modify nextword function ;fix some bug; remove json data