Environmental changes and the formation of successive faunas