delete unnecessary items