adding code for lang3 and lang4