# Help find this bug...snowflakes stop falling

**URL:** <https://forum.code.org/t/help-find-this-bug-snowflakes-stop-falling/38792>\
**Category:** Coding and Debugging Help\
**Created:** [December 11, 2023, 8:35pm UTC](https://forum.code.org/t/help-find-this-bug-snowflakes-stop-falling/38792 "2023-12-11T20:35:36Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![sherry.wood](https://avatars.discourse-cdn.com/v4/letter/s/d78d45/32.png) [@sherry.wood](https://forum.code.org/u/sherry.wood)\
**Post date:** [December 11, 2023, 8:35pm UTC](https://forum.code.org/t/help-find-this-bug-snowflakes-stop-falling/38792/1 "2023-12-11T20:35:36Z")

</div>

**Link to the project or level:** Unit 3 lesson 21  
[Game Lab - Code.org](https://studio.code.org/projects/gamelab/j1jwXDBufrOw-UNnkpmbNgCOf09DI-q2TOrSPwVWMn0)  
**What I expect to happen:** snowflakes to continue falling  
**What actually happens:** as you play if you catch 2 snow flakes or they reach the bottom eventually they appear at the top but do not fall  
**What I’ve tried:** changing velocity adding else for snowflakes to keep falling

Please help. thanks

> **[Check out what I made](https://studio.code.org/projects/gamelab/j1jwXDBufrOw-UNnkpmbNgCOf09DI-q2TOrSPwVWMn0)**
>
> I wrote the code myself with Code.org

---

<div class="post-metadata">

**Author:** ![varrience](https://sea2.discourse-cdn.com/flex016/user_avatar/forum.code.org/varrience/32/8042_2.png) [@varrience](https://forum.code.org/u/varrience)\
**Post date:** [December 12, 2023, 12:56am UTC](https://forum.code.org/t/help-find-this-bug-snowflakes-stop-falling/38792/2 "2023-12-12T00:56:18Z")

</div>

the problem with your code is that your referencing an incorrect sprite in snowflake2 comparison statement

```auto
if (snowflake2.y > 400) {
    snowflake2.y = 0; // this is referenced as snowflake not resetting the position
    snowflake2.x = randomNumber(0, 400);
  }

```

since your comparing and not resetting the snowflake2 the conditional is being triggered thus forcing the first one to stay in place indefinitely by changing snowflake in this conditional to snowflake2 will fix your current issue
