remove unneded attr