give me the function of earthquake ​