fix sum errors and add new fiels