remove unneded maps