adding code to detect lang2