edit feed controller add def last_sum