private void modifyFactors(int firstFactorIndicator, int secondFactorIndicator) {
	//TODO: (3 marca 2013) zrob tak by faktoy nie modyfikowaly sie o dodanie 1dynki, tylko o dodanie elementu z tableOfP1
	BigDecimal factor1 = factorList1.get(0);
	BigDecimal factor2 = factorList2.get(0);
	factorList1.remove(0);
	factorList2.remove(0);
	calculationList.remove(0);
	// change to i%2 to i%10
	int factorsIndex = tableOfP1.indexOf(factor1);;
	if (firstFactorIndicator==1 && (secondFactorIndicator==0)) {
		factor1 = factor1.add(tableOfP1.get(firstFactorIndicator-1));
	}
	if (firstFactorIndicator>1 && (secondFactorIndicator==0)) {
		factor1 = factor1.add(tableOfP1.get(firstFactorIndicator-1)).subtract(tableOfP1.get(firstFactorIndicator-2));		
	}
	if (secondFactorIndicator==0 && (firstFactorIndicator==0)) {
		factor2=factor2.add(tableOfP1.get(secondFactorIndicator));		
	}
	if (secondFactorIndicator==0 && (firstFactorIndicator!=0)) {
		factor2=factor2.add(tableOfP1.get(secondFactorIndicator)).subtract(tableOfP1.get(tableOfP1.size()-1));		
	}
	if (secondFactorIndicator!=0) {
		factor2=factor2.add(tableOfP1.get(secondFactorIndicator)).subtract(tableOfP1.get(secondFactorIndicator-1));						
	}	
		modifiedFactorsList.remove(0);
		modifiedFactorsList.remove(0);
		modifiedFactorsList.add(factor1);
		modifiedFactorsList.add(factor2);
		factorList1.add(factor1);
		factorList2.add(factor2);
		calculationList.add("multiplying");
			
	}