updating switch between sim and sam