resolve ranges