histogram add method sum