fix comparison syntax errors