added switch duraction example