add functionality to sum results