public String returnItem(String d, String i)
	{		
		//variables
		Boolean validItem;
		Item currentItem;
		LibraryCollection myItems = LibraryCollection.getInstance();
		String itemID = i;
		String date = d;

			validItem = false;
			while (!validItem)
			{				
				try
				{
					Item myItem = itemsOnFile.getItem(itemID);
	
					if(myItems.collection.containsKey(itemID))
					{
						if(myItem.quantity == 0)
						{
							validItem = true; 
							myItem.quantity++;
							Borrower borrower = borrowersOnFile.getBorrower(myItem.borrower);
							borrower.history.addRecordInfo(date, itemID, Record.RETURNS);
							return "\nThe Item has successfully been returned." ;
						}
						else
						if(myItem.quantity == 1)
						{
							validItem = true;
							JOptionPane.showMessageDialog(null, "That item is already in stock.\nReturning to main menu.");
						}
					}
					else
					if(!myItems.collection.containsKey(itemID))
					{
						validItem = false;
						JOptionPane.showInputDialog(null, "Invalid item.\nPlease enter a valid item.");
					}
				}
				catch(Exception e)
				{

				}

			 }

		return "\n";
	}