is_insertion_correct more efficient since loop break when insertions are detected as incorrect