started attack function