fix input format issue