working on attack mode