put aceComparison into a def function