removed unused function rxrange