input format fixing