Located the issue

updated the code to match