# How to separate modules without duplicating it

**URL:** <https://community.hubspot.com/t/how-to-separate-modules-without-duplicating-it/73656>\
**Category:** Blog, Website & Page Publishing\
**Created:** [January 24, 2023, 9:53pm UTC](https://community.hubspot.com/t/how-to-separate-modules-without-duplicating-it/73656 "2023-01-24T21:53:24Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![jasonxpan](https://avatars.discourse-cdn.com/v4/letter/j/b38774/32.png) [@jasonxpan](https://community.hubspot.com/u/jasonxpan)\
**Post date:** [January 24, 2023, 9:53pm UTC](https://community.hubspot.com/t/how-to-separate-modules-without-duplicating-it/73656/1 "2023-01-24T21:53:24Z")

</div>

I’m using a default hubspot image module in one of my hubl+html email templates and using the snippet like this:

`{% module "module_167459140015211" path="@hubspot/linked_image", label="Image" class="mcnImage" %}`

The problem I have is that if I use the same image module in the email template it mimics the original. Is it possible to make it separate without having to clone the module? Ideally don’t want like 10 image modules.

 ![duplicate.jpg](https://d2qpr2jzcazej7.cloudfront.net/original/2X/b/b7909076ebf3c81768dea8d10f4e0c650dd418bd.jpeg)

---

<div class="post-metadata">

**Author:** ![alyssamwilie](https://d10pqhm3lwygmk.cloudfront.net/user_avatar/community.hubspot.com/alyssamwilie/32/2072_2.png) [@alyssamwilie](https://community.hubspot.com/u/alyssamwilie)\
**Post date:** [January 25, 2023, 4:22am UTC](https://community.hubspot.com/t/how-to-separate-modules-without-duplicating-it/73656/2 "2023-01-25T04:22:54Z")

</div>

The “module\_167459140015211” in the tag is a unique identifier for the placed module, if two {% module %} tags have the same identifier they’re treated as though they’re the same module. So all you need to do is give the two tags different identifiers. This identifier can be anything you want as long as it uses underscores instead of spaces or dashes. Example:

```lia-code-sample
{% module "email_image_one" path="@hubspot/linked_image", label="Image" class="mcnImage" %}

{% module "email_image_two" path="@hubspot/linked_image", label="Image" class="mcnImage" %}

```

---

<div class="post-metadata">

**Author:** ![jasonxpan](https://avatars.discourse-cdn.com/v4/letter/j/b38774/32.png) [@jasonxpan](https://community.hubspot.com/u/jasonxpan)\
**Post date:** [January 25, 2023, 3:08pm UTC](https://community.hubspot.com/t/how-to-separate-modules-without-duplicating-it/73656/3 "2023-01-25T15:08:34Z")

</div>

Thank you!
