added sum for the attributes