Earthquake frequencies affects buildings of different heights