again, I think that switch statement is nicer here.