hot and cold if function added