add average integral