new method that read line per line