Title: Dynamic instability in buildings subjected to earthquakes