restructure for typing primary exons first
r15: type primary exons first