parse ranges