I have the following problem: i have two switch cases . They work perfectly when separated, but the minute I put them into an if/else the 2. switch always returns the defaul