delete unnecessary statements