changed 'messages' to a list because before i was using a dictionary with keys that were literally just the indexes. what the fuck. hahaha