use <code>case</code> instead of if...else