dirty code but rushing to get stats on time. part 1 done.