add the capability of summing over species