renamed setrange to range to be consistent with rest of interface