moved compare to new function