remove dead fields