would've rather used a dict comprehension here but oh well.