refactor using a hash... idk what I was smoking
Working on learning. A lot of problems with it currently.