you could probably refactor your case statements to one line