added sum support