reverse and value sum