updated with input file