rewrited part of input from file