switch not working right?[C