attack function was modified,fortify implemented