delete unnecessary fields and method