changed variable name back to original since that wasnt the error. Removed unnecessary console logs.