add up public func