fixed attacking algorithms