determine damage