switch case instead of if .. else if