attack implementation