adding lines to the input file