improve input format