change part of file