char should be enough for i here and elsewhere?