# Debugging the exercise

**URL:** <https://community.neo4j.com/t/debugging-the-exercise/6437>\
**Category:** Graph Academy\
**Created:** [April 8, 2019, 2:31pm UTC](https://community.neo4j.com/t/debugging-the-exercise/6437 "2019-04-08T14:31:08Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![ianrbi](https://sea1.discourse-cdn.com/flex021/user_avatar/community.neo4j.com/ianrbi/32/3887_2.png) [@ianrbi](https://community.neo4j.com/u/ianrbi)\
**Post date:** [April 8, 2019, 2:31pm UTC](https://community.neo4j.com/t/debugging-the-exercise/6437/1 "2019-04-08T14:31:09Z")

</div>

Hi guys, I am a coding newbie, so please be gentle.  
I was just wondering if anyone else has found this anomaly in Exercise 7.1. When I execute the recommended query, the cast details for "V for Vendetta" are triplicated.

 ![image](https://us1.discourse-cdn.com/flex021/uploads/neo4jcommunity/original/2X/c/c6454f0e9cf40964277b603427120ec145721169.png)  
I think I fixed it by adding DISTINCT to the collect(a.name) at the WITH line, but since I've never coded before, please can someone check this is the right fix, and also please can they explain why V is the only movie for which this happens.  
Many thanks.  
Ian

---

<div class="post-metadata">

**Author:** ![elaine\_rosenber](https://sea1.discourse-cdn.com/flex021/user_avatar/community.neo4j.com/elaine_rosenber/32/27409_2.png) [@elaine\_rosenber](https://community.neo4j.com/u/elaine_rosenber)\
**Post date:** [April 8, 2019, 2:57pm UTC](https://community.neo4j.com/t/debugging-the-exercise/6437/2 "2019-04-08T14:57:40Z")

</div>

Hello Ian,

You definitely did the right thing in the Cypher to eliminate duplication of the cast members. Other movies, have the same duplicity of cast members such as "Ninja Assassin". The results returned depend on the cast members that also participated in a movie with the same producer.

You are learning Cypher! Congratulations and keep up the good work.

Elaine

---

<div class="post-metadata">

**Author:** ![ianrbi](https://sea1.discourse-cdn.com/flex021/user_avatar/community.neo4j.com/ianrbi/32/3887_2.png) [@ianrbi](https://community.neo4j.com/u/ianrbi)\
**Post date:** [April 8, 2019, 4:23pm UTC](https://community.neo4j.com/t/debugging-the-exercise/6437/3 "2019-04-08T16:23:08Z")

</div>

Hi Elaine

Many thanks for the feedback, and so quickly. OK. I feel a little more confident.

Onwards and upwards!

Best wishes

Ian
