simplify the code by removing class alpha_count