turns out an error I was having for the past 30 mins was because of something I forgot to put in earlier in the code -_-