added read_all_loop
added read_all_loop