removed unused wig code