This post was written by Jane Scudder and originally appeared on Fairygodboss.

I once asked my students in the Career Preparation course I teach at the Quinlan School of Business at Loyola University Chicago how many of them have ever had a “bad boss” or toxic colleague (or classmate). Over 90% raised their hands.

There’s a lot we need to do as a culture to improve the workplace, and while generally speaking the workplace at large is moving in a more empathetic, positive direction, toxic environments still exist. So what can you do to remain positive if you find yourself in this type of situation?

1. Find a compatriot.

We feel it, we’re told it, and the research supports it: friends matter. Having someone we’re close with at work helps us, but having people in your corner, who get you, and understand your circumstances—good or bad, is extremely helpful in the workplace. This can be even truer when you are in a less-than-ideal environment. Having at least one friend at work when times are tough can be what makes or breaks you staying at the firm, or remaining sane while you look for what’s next.

2. Talk with someone.

You don’t need to communicate your concerns or uneasiness with colleagues but you do need to communicate them to someone. One of the worst things to do when you’re in the middle of a toxic work environment is to keep it to yourself. This breeds the mental reactions also bred by gas lighting—you’ll begin to wonder if you’re the problem. Talking with someone will help you deduce fact from fiction.

3. Take breaks and use your PTO.

You have PTO and a lunch break for a reason. You need this even more if you’re in a toxic environment. It’s nice to dart off to a tropical island to recharge—and if you can and that’s what you want, you should! But if you can’t take an extended vacation or short trip out of town that’s okay too—find small ways to take breaks daily. Leave your desk for lunch. Go on a 5-minute walk alone. Even on the busiest of days at the most demanding companies, there are ways to find a moment for you.

4. Establish and honor your limits.

Boundaries are critical for a healthy work environment. Make your own boundaries clear and communicate them with your manager and colleagues, and don’t budge. If you said you’re not checking email past 6 pm, don’t check your email after 6 pm! If you cave “just this once,” others will take advantage of you.

5. Create an exit strategy. 

Set goals for yourself—and, if you’ve reached your limit, make getting out one of them.

I used to be shocked when my clients would tell me they’ve been in a toxic work environment—or simply painstakingly unhappy—for years. Now, I realize how common it is. Of course, sometimes there are reasons why you can’t just up and leave a job, but if you’re unhappy, you must come up with and execute a strategy to move forward. This will not just happen to you. You’re responsible for yourself and you must take your career and life into your own hands.

How? Connect with yourself and your wants, talk with a mentor or a trusted friend or hire a coach if you need someone objective and outside your network. Come up with a game plan and go.

This article reflects the views of the author and not necessarily those of Fairygodboss.

This post was written by Jane Scudder and originally appeared on Fairygodboss.