change coding to use '-' instead of '..' for ranges