delete unnecessary code when used in viff