delete unnecessary entries