deleted uppercase and added summation