summation logic added to try and eliminate duplicate values