didn't like all the if/else if statements, changed to switch/casew