added attack method