modifying input format to be able to read the input not just by position