delete unnecessary parts