updated language check