rewrote the part that check if exons are connected