just realized i've been debugging the same line of code for 2 hours and the problem was a missing semicolon lol