updated the Print Combination code for code performance