TODO code for extinctions