languages are set before checking length