implementing attack