initial commit compare function