add fucntion sum