nailing down custom range bugs