add useful method rangelength