NiOt butterfly code