aggregate working in debug, needs to be put into the datastore