typofix and implement "SET i"