Even though it may make all your Facebook buddies envious, sharing your holiday photographs may make you happier.

According to a study out of the University of California at Irvine, shooting certain kinds of photos made people happier.

The students were told to shoot one graphic on their smartphone every day—“a selfie photograph with a smiling expression,” “a photo of something that would make oneself happy,” or “a photo of something that would make another person joyful.”

Basically, the study concluded, any photo shot with the goal of producing happiness will have a favorable effect on the photographer. Same goes for any picture that aims to bring the photographer and crowd together.

Individuals who took photographs for themselves became more cognizant, brooding, and conscious of their surroundings. Those who took photos for others reduced anxiety due to their stronger ties and reported better communication with their family and friends.

And those who took selfies reported feeling comfortable, more confident, and creative. Nonetheless, they also became more stressed and bored with persistent smiling.

So do individuals shoot selfies because they ’re happy, or are they happy because they shoot selfies? Either way, proceed and snap all the photographs on your next holiday. Every single person in your social media feed is undoubtedly going to adore it.

And even if they don’t, you’ll.