fixes for compare function