changed some earthquake logic