Introduced smooth-if function in the conversio0n models