update pages
created sum method