add language checking