renamed rangelength to lengthrange