added the right type to the aggregate