amost done. some problem with damage in $