trying to fix attacking