updated sum to 3