added attack mode