update code for lang4