finished adapting function to disasters as well