get rid of unused fieldss