added method to remove inherited fields