halfway thru attacking funciton