delete unnecessary fields