public boolean SetBusInActiveStatus(int busNumber, int inputBufferNumber, int packetSequence, int TIME, ConfigFile cfg)
    {
        //REMOVE IN CROSSBAR FABRIC TYPE
        //only one bus present in this fabric type, 
        //busNumber = 0;
        
        //ensure valid busNumber chosen
        if(((busNumber+1)<= VERTICALBUSES) && ((busNumber+1) > 0) &&
            (busActiveStatus[busNumber] == true))
        {
            //check if bus free, or already used by a buffer
            if (((currentInputBufferUsingTheBus[busNumber] == -1) ||
                (currentInputBufferUsingTheBus[busNumber] == inputBufferNumber)) &&
                (sequence[busNumber] == packetSequence))
            {
                //set the status of the bus
                busActiveStatus[busNumber] = false;
                
                //add the bus back to available buses
                availableBuses.add((Object)busNumber);
                
                //remove input buffer NOT connected to a bus
                inputConnectedToBus.remove((Object)inputBufferNumber);
                
                //no buffer using the bus
                currentInputBufferUsingTheBus[busNumber] = -1;
                
                //no packet using the bus
                sequence[busNumber] = -1;

if(((String)cfg.GetConfig("GENERAL","Verbose")).compareToIgnoreCase("True") == 0)
{                
    Print(true, busNumber,packetSequence,false,TIME); 
}
                //successfully released the bus
                return true;
            }
        }
        
if(((String)cfg.GetConfig("GENERAL","Verbose")).compareToIgnoreCase("True") == 0)
{        
    Print(false, busNumber,packetSequence,false,TIME);        
}
        //was unable to control the bus
        return false;
    }