add compare to main controller