update ranges