update generated code for comparisons
obsolete TODO