fixing equality comparison.