encapsulate simple_compare main routine