Was having issues writing code, changing the code to a anonymous function was getting syntac errors because I was missing the "{" testing the code again to see if I continue to still get errors.