function alphatotal added