# Sometimes can't access classes outside of main .pde file

**URL:** https://discourse.processing.org/t/sometimes-cant-access-classes-outside-of-main-pde-file/23535
**Category:** Beginners
**Created:** [August 28, 2020, 7:06pm UTC](https://discourse.processing.org/t/sometimes-cant-access-classes-outside-of-main-pde-file/23535 "2020-08-28T19:06:33Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![usr-pyth](https://avatars.discourse-cdn.com/v4/letter/u/c5a1d2/32.png) [@usr-pyth](https://discourse.processing.org/u/usr-pyth)
#### Post date: [August 28, 2020, 7:06pm UTC](https://discourse.processing.org/t/sometimes-cant-access-classes-outside-of-main-pde-file/23535/1 "2020-08-28T19:06:34Z")

</div>

I’m making a Processing example of boids, and I have a main `boids.pde` file and a `boid_class.pde` file.  
I have a class Boid in the `boid_class.pde` file that I’m unable to access from `boids.pde.` How do I fix this?

---

<div class="post-metadata">

### Author: ![Chrisir](https://yyz2.discourse-cdn.com/flex036/user_avatar/discourse.processing.org/chrisir/32/45_2.png) [@Chrisir](https://discourse.processing.org/u/Chrisir)
#### Post date: [August 28, 2020, 7:52pm UTC](https://discourse.processing.org/t/sometimes-cant-access-classes-outside-of-main-pde-file/23535/2 "2020-08-28T19:52:48Z")

</div>

> [@usr-pyth](#):
>
> Boid in the `boid_class.pde` file that I’m unable to access from `boids.pde`

hmm… it’s also case-sensitive…

sometimes there are issues when the folder/file has the same name as a class.

Try saving the project with a new name like BoidPGR1

otherwise we need to see your code to make some suggestions

Chrisir

---

<div class="post-metadata">

### Author: ![usr-pyth](https://avatars.discourse-cdn.com/v4/letter/u/c5a1d2/32.png) [@usr-pyth](https://discourse.processing.org/u/usr-pyth)
#### Post date: [August 28, 2020, 8:28pm UTC](https://discourse.processing.org/t/sometimes-cant-access-classes-outside-of-main-pde-file/23535/3 "2020-08-28T20:28:29Z")

</div>

But I don’t have a pde file named “boid” or “Boid” – it’s already different.

---

<div class="post-metadata">

### Author: ![usr-pyth](https://avatars.discourse-cdn.com/v4/letter/u/c5a1d2/32.png) [@usr-pyth](https://discourse.processing.org/u/usr-pyth)
#### Post date: [August 28, 2020, 8:29pm UTC](https://discourse.processing.org/t/sometimes-cant-access-classes-outside-of-main-pde-file/23535/4 "2020-08-28T20:29:19Z")

</div>

But I don’t have a pde file named “boid” or “Boid” – it’s already different.
