Revert "improve indexing by ranges, ref #287"

This reverts commit edbf9346881c91bcfd2ec72f77d80eba3f21ba01.