It is observed during an earthquake in japan that medium sized buildings are damaged more than very short or tall buildings. This is because