removed miro from plotting loop