Now ip changes in switch statement