bug fix for specified columns for comparison