implemented language check