adding end value fcts