added ifte, fixed dip*