added fix for comparison operator