fixed statement of sum to e, courtesy of Omar Antolín Camarena