delete unnecessary fiels