parse ranges when provided