fix for compare