writed function find_in_file, some light changes