removed continue_read variable