updated version of diagramophone which deals with loops (slightly) better