added data and sum stuff.