We’ve all had those days when it seems like absolutely nothing is going to go right. It begins with a bad night of sleep, and spirals downward from there. Though difficult days are inevitable for everyone, there are some surefire mood-boosting activities to prevent unhappiness at work every day.

Here are 6 ways to stay both happy and productive at work:

  1. Eliminate Distractions

Yes, that means closing down your social media profiles so you don’t spot articles or personal posts that anger you. Save the distracting Internet-browsing and radio listening for when you get home from work.

  1. Compartmentalize

Definitely easier said than done, but practice compartmentalizing all of the different annoyances in your life and literally shutting them down while you’re at work being productive. There’s nothing you can do about the state of your kitchen while you’re at work, so forget about it.

  1. Systemize Your Workflow

If you’re trained to use multiple systems to sort through your work stack every day, then no distractions will keep you from executing sharply and effectively.

  1. Relax

This can be achieved in many different ways for people. Whether it’s breaking out a healthy snack, going for a walk, building in morning exercise, or listening to soothing sounds, do what you need to do to fully power down and reach your zen state.

  1. Be Less Serious

Laugh a little! It’s ok to not take everything so seriously. It’s not good for your health to be wound up so tight you can’t take a joke. If something bad happens to you at work, sit back, smile, and remember that everything is going to be fine.

  1. Sleep More

Sleep is the first thing to go in a busy daily schedule. But, sleep is actually the #1 contributor to a good or bad mood. So if you’re feeling cranky today, give yourself the full 9-hours of sleep tonight to make up for it.

With these 6 steps, you’ll be a happier, friendlier you in no time.