added throw error
added function read_lines_fgets