conditional file extension after teachers lang choice